import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import {Provider} from "react-redux";
import configurationStore from "./redux/store";
import {routers} from "./routers";
import {HashRouter, RouterProvider} from "react-router-dom";
import { ConfigProvider } from 'antd';

const store = configurationStore()
const root = ReactDOM.createRoot(document.getElementById('root'));

const theme = {
    components: {
        Layout: {
            triggerColor:'black',
            triggerBg:'white'
        }
    }
}

root.render(
    <React.StrictMode>
        <ConfigProvider theme={theme}>
        <Provider store={store}>
            <RouterProvider router={routers}>
                     <App/>
            </RouterProvider>
        </Provider>
        </ConfigProvider>
    </React.StrictMode>
);